Conversation
Playwright Test MetricsTotal: 4 Duration: 4185962 ms ESLint (GUI tests)Test-Flow ChartArtifact: test-flow-chart → flowchart.png Full run details: link |
trigger GitHub Actions workflow
trigger Actions
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
prettier
[prettier] reported by reviewdog 🐶
[prettier] reported by reviewdog 🐶
Code-Reviews-of-GUI-Tests/scripts/screenshot.js
Lines 135 to 136 in f2d64e7
❌ GUI Screenshot Capture FailedScreenshot capture failed during execution. Debugging information:
Common fixes:
|
| @@ -0,0 +1,36 @@ | |||
| const { chromium } = require('playwright'); | |||
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| const { chromium } = require('playwright'); | |
| const { chromium } = require("playwright"); |
| browser = await chromium.launch({ | ||
| channel: 'chromium', | ||
| headless: true |
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| browser = await chromium.launch({ | |
| channel: 'chromium', | |
| headless: true | |
| browser = await chromium.launch({ | |
| channel: "chromium", | |
| headless: true, |
| channel: 'chromium', | ||
| headless: true | ||
| }); | ||
|
|
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
|
|
||
| const page = await browser.newPage(); | ||
| await page.setViewportSize({ width: 800, height: 600 }); | ||
|
|
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| await page.goto('https://example.com', { | ||
| waitUntil: 'networkidle', | ||
| timeout: 60000 |
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| await page.goto('https://example.com', { | |
| waitUntil: 'networkidle', | |
| timeout: 60000 | |
| await page.goto("https://example.com", { | |
| waitUntil: "networkidle", | |
| timeout: 60000, |
| await page.screenshot({ | ||
| path: 'screenshots/home.jpg', | ||
| type: 'jpeg', | ||
| quality: 70 |
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| await page.screenshot({ | |
| path: 'screenshots/home.jpg', | |
| type: 'jpeg', | |
| quality: 70 | |
| await page.screenshot({ | |
| path: "screenshots/home.jpg", | |
| type: "jpeg", | |
| quality: 70, |
| type: 'jpeg', | ||
| quality: 70 | ||
| }); | ||
|
|
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| await page.goto('https://example.com/about', { | ||
| waitUntil: 'networkidle', | ||
| timeout: 60000 |
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| await page.goto('https://example.com/about', { | |
| waitUntil: 'networkidle', | |
| timeout: 60000 | |
| await page.goto("https://example.com/about", { | |
| waitUntil: "networkidle", | |
| timeout: 60000, |
| await page.screenshot({ | ||
| path: 'screenshots/about.jpg', | ||
| type: 'jpeg', | ||
| quality: 70 |
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| await page.screenshot({ | |
| path: 'screenshots/about.jpg', | |
| type: 'jpeg', | |
| quality: 70 | |
| await page.screenshot({ | |
| path: "screenshots/about.jpg", | |
| type: "jpeg", | |
| quality: 70, |
|
|
||
| console.log('✅ Screenshots captured successfully!'); |
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| console.log('✅ Screenshots captured successfully!'); | |
| console.log("✅ Screenshots captured successfully!"); |
|
|
||
| console.log('✅ Screenshots captured successfully!'); | ||
| } catch (error) { | ||
| console.error('❌ Screenshot failed:', error); |
There was a problem hiding this comment.
[prettier] reported by reviewdog 🐶
| console.error('❌ Screenshot failed:', error); | |
| console.error("❌ Screenshot failed:", error); |
|
errors |
No description provided.